a program to implement array using pointers in c